home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Gamer UK 123 / CD Gamer Issue 123 (June 2003) (Disc 1).ISO / Games / Dev_Demo_EU / data1.cab / App_Executables / OpenAL / Inc / alu.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-28  |  1.1 KB  |  35 lines

  1. #ifndef _ALU_H_
  2. #define _ALU_H_
  3.  
  4. #define ALUAPI
  5. #define ALUAPIENTRY __cdecl
  6.  
  7. #define BUFFERSIZE 48000
  8. #define FRACTIONBITS 14
  9. #define FRACTIONMASK ((1L<<FRACTIONBITS)-1)
  10. #define OUTPUTCHANNELS 2
  11.  
  12. #include "altypes.h"
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. ALUAPI ALint    ALUAPIENTRY aluF2L(ALfloat value);
  19. ALUAPI ALshort    ALUAPIENTRY aluF2S(ALfloat value);
  20. ALUAPI ALvoid    ALUAPIENTRY aluCrossproduct(ALfloat *inVector1,ALfloat *inVector2,ALfloat *outVector);
  21. ALUAPI ALfloat    ALUAPIENTRY aluDotproduct(ALfloat *inVector1,ALfloat *inVector2);
  22. ALUAPI ALvoid    ALUAPIENTRY aluNormalize(ALfloat *inVector);
  23. ALUAPI ALvoid    ALUAPIENTRY aluMatrixVector(ALfloat matrix[3][3],ALfloat *vector);
  24. ALUAPI ALvoid    ALUAPIENTRY aluCalculateSourceParameters(ALuint source,ALuint channels,ALfloat *drysend,ALfloat *wetsend,ALfloat *pitch);
  25. ALUAPI ALvoid    ALUAPIENTRY aluMixData(ALvoid *context,ALvoid *buffer,ALsizei size,ALenum format);
  26. ALUAPI ALvoid    ALUAPIENTRY aluSetReverb(ALvoid *Reverb,ALuint Environment);
  27. ALUAPI ALvoid    ALUAPIENTRY aluReverb(ALvoid *Reverb,ALfloat Buffer[][2],ALsizei BufferSize);
  28.  
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32.  
  33. #endif
  34.  
  35.